﻿
using System;
using System.ComponentModel.DataAnnotations;
using System.Collections.Generic;

namespace XSTDZ.ERP.Application.DataContracts
{
    [Serializable]
    public class OrgDto
    {
        public Guid Id { get; set; }
        [Required(ErrorMessage="请输入编码!")]
        [Display(Name="编码：")]
        public string Code { get; set; }
         [Display(Name = "名称：")]
        public string Name { get; set; }
         [Display(Name = "描述：")]
        public string Description { get; set; }
         [Display(Name = "排序：")]
        public short Order { get; set; }
        
        public System.Guid? ParentId { get; set; }

        //层级
        public short? Level { get; set; }
        
         [Display(Name = "是否叶子结点：")]
        public bool IsLeaf { get; set; }

         public IList<OrgDto> OrgDtos { get; set; }
         public IList<DeptDto> DeptDtos { get; set; }
         public IList<UserDto> UserDtos { get; set; }
    }
}
